#include <head.h>

typedef void (*sighandler_t)(int);

void my_handler(int sig)
{
    printf("收到了一个信号%d\n" , sig);
    return ;
}

int main(int argc, char const *argv[])
{
    // SIGINT
    
    signal(SIGINT , my_handler);


    while (1)
    {
        sleep(1);
    }
    
    return 0;
}